<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
/*Route::get('/', function()
{
    $img = Image::make('http://n.sinaimg.cn/tech/transform/20171127/QBzs-fypatmu9678669.png')->resize(300, 200);

    return $img->response('jpg');
});*/
Route::post('/', function()
{
 dump(123);
});
Route::get('article',function(){
    $user = \App\Models\Article::paginate(2);
    return new \App\Http\Resources\Api\ArticleCollection($user);
});
Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');


